<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	SSOLogOff
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>SSO Log Off</h2>

	<img src="/Content/largeindicator.gif" /><br />
	<p>Please wait while we close your SSO session...</p>


	<script type="text/javascript">

		$(function() {
			// log user out from SSO service
			$.get('http://localhost:21259/SSOService.svc/user/Logout?callback=?', {},
				function(ssodata) {
					// client's no longer logged in, redirect to logon page
					document.location = '<%=Url.Action("LogOn", "Account") %>';
				}, 'jsonp');
		});
		
	</script>

</asp:Content>
